home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-09-19 | 1023 b | 36 lines | [TEXT/MPS ] |
- ;*********************************************************************
- ;***** The SAWS Inter-Application Communication Driver Sample Program
- ;***** Text Highlighting Routines for TextEdit
- ;***** Frank Alviani - 9/88
- ;*********************************************************************
-
- INCLUDE 'Traps.a'
- INCLUDE 'QuickEqu.a'
- INCLUDE 'SysEqu.a'
- INCLUDE 'SysErr.a'
- INCLUDE 'ToolEqu.a'
- STRING PASCAL
- CASE OBJECT
-
- ;
- ; This routine highlights the rectangle passed on the stack by
- ; "stippling" it. There could be separate routines for "target"
- ; and "source" links.
- ; Exclusive-or mode is used since this called twice (select and
- ; deselect) and we need to return the text to its original look.
- ;
- ; Input: A3 points to locked TERec
- ; Can destroy A0, A1, D0, D2, D3
- ;
- SourceHigh PROC EXPORT
- MOVE.W #patXor,-(A7) ;set mode
- _PenMode
- MOVE.L GrafGlobals(A5),A0
- PEA ltGray(A0) ;set stipple
- _PenPat
- _PaintRect ;stipple the text
- ; _PaintRect pops rectangle off stack, leaving return address
- RTS
-
- END
-